home *** CD-ROM | disk | FTP | other *** search
- global gHFAthleteMode, gHFlastTicket, gHFposition, gHFaList, gHFsList, gHFaMax, gHFsMax, ghfmaxathleteno, ghfathlete, gHFsaveAthleteMode
-
- on whichTicket aPoint
- if inside(aPoint, rect(360, -6, 466, 69)) then
- set vRet to "_R"
- else
- if inside(aPoint, rect(465, -6, 599, 69)) then
- set vRet to "_B"
- else
- set vRet to EMPTY
- end if
- end if
- return vRet
- end
-
- on ticketClick
- set gHFsaveAthleteMode to gHFAthleteMode
- set vSprite to the clickOn
- set vSave to the castNum of sprite vSprite
- set vPoint to point(the mouseH, the mouseV)
- set vTicket to whichTicket(vPoint)
- if gHFAthleteMode then
- set vMode to "_A"
- else
- set vMode to "_S"
- end if
- if the number of cast ("CLICK" & vMode & vTicket) < 1 then
- exit
- end if
- set the castNum of sprite vSprite to cast ("CLICK" & vMode & vTicket)
- updateStage()
- repeat while the stillDown
- nothing()
- end repeat
- set vPoint to point(the mouseH, the mouseV)
- if vTicket = whichTicket(vPoint) then
- if vTicket = "_B" then
- SetCursor(#wait)
- dontPassEvent()
- setAthleteMode(1)
- puppetSound("pheeu.aif")
- go("listmenu")
- put EMPTY before line 1 of field "athletelist"
- SetCursor(#normal)
- else
- SetCursor(#wait)
- dontPassEvent()
- setAthleteMode(0)
- puppetSound("pheeu.aif")
- if gHFsMax = 0 then
- set the text of cast "searchlist" to "*No Search Results*"
- else
- set the text of cast "searchlist" to the text of cast "Result List"
- put EMPTY before line 1 of field "searchlist"
- end if
- go("searchmenu")
- SetCursor(#normal)
- end if
- else
- set the castNum of sprite vSprite to vSave
- updateStage()
- end if
- end
-
- on ticketRollover
- if gHFAthleteMode then
- set vMode to "_A"
- else
- set vMode to "_S"
- end if
- set vPoint to point(the mouseH, the mouseV)
- set vTicket to whichTicket(vPoint)
- if rollOver(16) then
- set vState to "ROLL"
- else
- set vState to "NORM"
- end if
- set vCast to the number of cast (vState & vMode & vTicket)
- set the castNum of sprite 16 to vCast
- updateStage()
- end
-
- on setAthleteMode aFlag, aForce
- if voidp(aForce) then
- set aForce to 0
- end if
- if (aFlag = gHFAthleteMode) and not aForce then
- exit
- end if
- set gHFAthleteMode to aFlag
- if aFlag then
- set ghfmaxathleteno to gHFaMax
- set ghfathlete to value(string(gHFaList))
- set vCast to the number of cast "NORM_A"
- else
- set ghfmaxathleteno to gHFsMax
- set ghfathlete to value(string(gHFsList))
- set vCast to the number of cast "NORM_S"
- end if
- set the castNum of sprite 16 to vCast
- end
-